package com.lgx.mall.view.dao;

import java.util.List;

import com.lgx.common.exception.DataException;
import com.lgx.common.web.Pagination;
import com.lgx.mall.view.entity.WebPageDetail;



public interface IWebPageDetailDao {

	public WebPageDetail createWebPageDetail(WebPageDetail gate)throws DataException;
	public WebPageDetail updateWebPageDetail(WebPageDetail gate)throws DataException;
	public void deleteWebPageDetail(WebPageDetail gate)throws DataException;
	public void deleteWebPageDetail(long id)throws DataException;
	
	public WebPageDetail findWebPageDetailById(long id);
	
	public Pagination findWebPageDetailPagination(String sql,Object[] params,int pageSize,int pageNum);
	public Pagination findWebPageDetailPagination(Object[] params, int pageSize,int pageNum);
	
	public List<WebPageDetail> findWebPageDetailByAreaAndCid(String areaNode,long categoryId);
	public Pagination findWebPageDetailPaginationByAreaAndCid(String areaNode,long categoryId, int pageSize,int pageNum);
	
	public void deleteWebPageDetails(String[] ids) throws DataException;
}
